// components/no-data/index.js
import {profile} from "../../js/modules/store.js"
import authorize from '../../js/modules/authorize.js'
const componentBehavior = require('../../js/common/ComponentBehavior')

Component({
  /**
   * 组件的属性列表
   */
  properties: {
    title:Boolean,
    color:Boolean
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  behaviors: [componentBehavior],
  /**
   * 组件的方法列表
   */
  methods: {
    bindLogin:function(){
      if(!this.data.title){
        //退出登录
        profile.loginOut();
        authorize.redirect("store");
      }
    },
  }
})
